<?php
/**
 * @var $baseUrl string;
 * User: JSparrow
 * DateTime: 2016/11/23 10:31
 * Created by PhpStorm.
 */
use yii\helpers\Url;

?>
<aside class="main-sidebar">
	<!-- sidebar: style can be found in sidebar.less -->
	<section class="sidebar">
		<!-- Sidebar user panel -->
		<div class="user-panel">
			<div class="pull-left image">
				<img src="<?= $baseUrl ?>/adm/img/user2-160x160.jpg" class="img-circle" alt="User Image">
			</div>
			<div class="pull-left info">
				<p><?= Yii::$app->user->identity->profile->nickname ?></p>
				<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
			</div>
		</div>
		<!-- search form -->
		<form action="#" method="get" class="sidebar-form">
			<div class="input-group">
				<input type="text" name="q" class="form-control" placeholder="Search...">
				<span class="input-group-btn">
				<button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
				</button>
			  </span>
			</div>
		</form>
		<!-- /.search form -->
		<!-- sidebar menu: : style can be found in sidebar.less -->
		<ul class="sidebar-menu">
			<li class="treeview">
				<a href="#">
					<i class="fa fa-tree"></i> <span>基础设置</span>
					<span class="pull-right-container"><i></i></span>
				</a>
			</li>
			<li class="treeview active">
				<a href="#">
					<i class="fa fa-laptop"></i> <span>系统</span>
					<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
				</a>
				<ul class="treeview-menu">
					<li><a href="<?= Url::to(['/admin/admin/index']) ?>"><i class="fa fa-circle-o"></i> 管理员首页</a></li>
					<li><a href="<?= Url::to(['role/index']) ?>"><i class="fa fa-circle-o"></i> 角色列表</a></li>
					<li><a href="<?= Url::to(['permission/index']) ?>"><i class="fa fa-circle-o"></i> 权限列表</a></li>
					<li><a href="<?= Url::to(['menu/index']) ?>"><i class="fa fa-circle-o"></i> 菜单列表</a></li>
					<li><a href="<?= Url::to(['route/index']) ?>"><i class="fa fa-circle-o"></i> 路由列表</a></li>
					<li><a href="<?= Url::to(['rule/index']) ?>"><i class="fa fa-circle-o"></i> 规则列表</a></li>
				</ul>
			</li>
			<li class="treeview">
				<a href="<?= Url::to(['/gii']) ?>" target="_blank">
					<i class="fa fa-file-code-o"></i> <span>Gii</span>
				</a>
			</li>
			<li class="treeview">
				<a href="<?= Url::to(['/debug']) ?>" target="_blank">
					<i class="fa fa-bug"></i> <span>Debug</span>
				</a>
			</li>
		</ul>
	</section>
	<!-- /.sidebar -->
</aside>
